Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Remove unnecessary replay binary memory size check in JIT validator #171

Merged
merged 1 commit into from
Nov 20, 2023

Conversation

PlasmaPower
Copy link
Contributor

Moved from nitro OffchainLabs/nitro#1928 to avoid merge conflicts

We don't check memory bounds anywhere else because we don't need to. Panicking on out-of-bounds memory access is perfectly fine here, because it'll just be returned as an error to the validation service via the socket closing (and the panic will be printed to stderr).

@PlasmaPower PlasmaPower requested a review from tsahee October 17, 2023 15:34
@cla-bot cla-bot bot added the s label Oct 17, 2023
@PlasmaPower PlasmaPower changed the title Remove unnecessary memory size check in JIT validator Remove unnecessary replay binary memory size check in JIT validator Oct 17, 2023
@codecov
Copy link

codecov bot commented Oct 17, 2023

Codecov Report

Merging #171 (fa61fa4) into stylus (c33c522) will decrease coverage by 0.15%.
Report is 1 commits behind head on stylus.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           stylus     #171      +/-   ##
==========================================
- Coverage   56.45%   56.31%   -0.15%     
==========================================
  Files         276      276              
  Lines       42751    42748       -3     
==========================================
- Hits        24137    24072      -65     
- Misses      16164    16210      +46     
- Partials     2450     2466      +16     

Copy link
Contributor

@tsahee tsahee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@joshuacolvin0 joshuacolvin0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rachel-bousfield rachel-bousfield merged commit 574ac29 into stylus Nov 20, 2023
6 checks passed
@rachel-bousfield rachel-bousfield deleted the remove-useless-memory-check branch November 20, 2023 20:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants